import crossing from './mock/crossing';
import { createPromise } from './util';
import Mock from 'mockjs';
export const history = (data) => {
  return createPromise(Mock.mock(crossing['history']));
}
/** 交通流量统计 */
export const trafficVolume = (data) => {
  return createPromise(Mock.mock(crossing['trafficVolume']));
}
/** 饱和度统计 */
export const saturability = (data) => {
  return createPromise(Mock.mock(crossing['saturability']));
}
/** 均衡度统计 */
export const balance = (data) => {
  return createPromise(Mock.mock(crossing['balance']));
}
/** 拥堵指数统计 */
export const congestion = (data) => {
  return createPromise(Mock.mock(crossing['congestion']));
}
/** 排队长度统计 */
export const queueLength = (data) => {
  return createPromise(Mock.mock(crossing['queueLength']));
}
/** 拥堵时间统计 */
export const congestionTime = (data) => {
  return createPromise(Mock.mock(crossing['congestionTime']));
}
/** 交通流量历史值 */
export const volumeHis = (data) => {
  return createPromise(Mock.mock(crossing['volumeHis']));
}

/** 交通流量预测值 */
export const volumePre = (data) => {
  return createPromise(Mock.mock(crossing['volumePre']));
}